package com.meilishuo.message.exceptions;

/**
 * define the SQLException.
 * @author jianli
 *
 */
public class SQLException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3975684259694221636L;
	private final String message;

	public SQLException(org.springframework.dao.DataAccessException ex) {
		this.message = ex.getMessage();
	}

	@Override
	public String getMessage() {
		return message;
	}
}
